 var ANY_DATE = "All";
 var CUSTOM_DATE = "Custom Date Range";

 var startDateDictionary = {};
 var endDateDictionary = {};

 var selectedDateLabel = ""; 
 var previousStartDate = "";
 var previousEndDate = "";

function setStartDate(selectedDate, startDateControlID)
{
	if(selectedDate == ANY_DATE)
	{
	   $("#" + startDateControlID).datepicker("setDate", "1/1/1111"); 
	}
	else if(selectedDate != CUSTOM_DATE)
	{
		 $("#" + startDateControlID).datepicker("setDate", selectedDate);
	}
}
	
function setEndDate(selectedDate, endDateControlID) 
{
	if(selectedDate == ANY_DATE )
	{
		$("#" + endDateControlID).datepicker("setDate", "1/1/1111");
	}
	else if(selectedDate != CUSTOM_DATE)
	{
		$("#" + endDateControlID).datepicker("setDate", selectedDate);
	}
}	

function enableDatePickers(startDateControlID, endDateControlID)
{
	 $("#" + startDateControlID).datepicker("enable");
	 $("#" + endDateControlID).datepicker("enable");
}

function disableDatePickers(startDateControlID, endDateControlID)
{
	$("#" + startDateControlID).datepicker("disable");
	$("#" + endDateControlID).datepicker("disable");
}



